<SCRIPT src="/js/jquery.js" type="text/javascript"></SCRIPT>
<SCRIPT src="/js/Gettext.js" type="text/javascript"></SCRIPT>
<SCRIPT src="/locale/<!--TPL:$user->lang-->/LC_MESSAGES/musdb.js.json" language="javascript"></SCRIPT>
<script src="/js/watch.js" type="text/javascript"></script>

<div class="block">
    <table class="data-wrapper">
        <tr>
            <td class="header">
                <div class="menu">
                    <a href="/home?view=new"<!--TPL:if $view == 'new'-->class="active"<!--TPL:/if-->><!--TPL:"New"|gettext--></a>
                </div>
                <div class="menu">
                    <a href="/home?view=upcoming"<!--TPL:if $view == 'upcoming'-->class="active"<!--TPL:/if-->><!--TPL:"Upcoming"|gettext--></a>
                </div>
                <div class="menu">
                    <a href="/home?view=released"<!--TPL:if $view == 'released'-->class="active"<!--TPL:/if-->><!--TPL:"Released"|gettext--></a>
                </div>
                <div class="filter">
                    <form action="/home" method="GET" style="display: inline;">
                        <input type="hidden" name="view" value="<!--TPL:$view-->">
                        <input type="hidden" name="items" value="<!--TPL:$items-->">
                        <small><!--TPL:"filter by tag"|gettext-->:</small>
                        <input type="text" size="10" class="flat" id="filter" name="filter">
                    </form>
                </div>
            </td>
        </tr>

        <tr>
            <td id="content" class="content">
                <!--TPL:include file="_home_$view.block.tmpl.html"-->
            </td>
        </tr>

        <tr>
            <td class="more">
                <a href="/home?view=<!--TPL:$view-->&items=<!--TPL:$items+20--><!--TPL:if !empty($filter)-->&filter=<!--TPL:$filter--><!--TPL:/if-->#<!--TPL:$items+20-->"><!--TPL:"Show more"|gettext--></a>
            </td>
        </tr>
    </table>
</div>

<div class="block">
    <table class="data-wrapper">
        <tr>
            <td class="header">
                <a name="lastfm" class="anchor"><!--TPL:"Last.fm advisor"|gettext--></a>
            </td>
        </tr>

        <tr>
            <td class="content">
                <!--TPL:include file="_lastfm_recommendations.block.tmpl.html"-->
            </td>
        </tr>
    </table>
</div>

<div class="block">
    <table class="data-wrapper">
        <tr>
            <td class="header">
                <a name="about" class="anchor"><!--TPL:"About"|gettext--></a>
            </td>
        </tr>

        <tr>
            <td class="content">
                <!--TPL:include file="_home_about.block.tmpl.html"-->
            </td>
        </tr>
    </table>
</div>